package tech.hypersense.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import tech.hypersense.system.model.entity.UserRole;

/**
 * @Author: HyperSense
 * @CreateTime: 2025-03-26
 * @Description: 用户角色访问层
 * @Version: 1.0
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
     * 获取角色绑定的用户数
     *
     * @param roleId 角色ID
     */
    int countUsersForRole(Long roleId);
}